data=$1
klogx=$2

echo $data $klogx

#data

f3=" "

bb=$(basename $(pwd))

if [ ${bb:10:4}\kk == Inclkk ]
then
    f3=ETA3_$data.root 
fi

tagid=111

./drawFractionRatio $data  0  ETA0_$data.root  ETA1_$data.root  ETA2_$data.root  "$f3"  " "  " "  1  "ratio to ref."  $tagid  $klogx  0
./drawFractionRatio $data  1  ETA0_$data.root  ETA1_$data.root  ETA2_$data.root  "$f3"  " "  " "  1  "ratio to ref."  $tagid  $klogx  0
./drawFractionRatio $data  2  ETA0_$data.root  ETA1_$data.root  ETA2_$data.root  "$f3"  " "  " "  1  "ratio to ref."  $tagid  $klogx  0
./drawFractionRatio $data  3  ETA0_$data.root  ETA1_$data.root  ETA2_$data.root  "$f3"  " "  " "  1  "ratio to ref."  $tagid  $klogx  1


exit


aliroot -q -l -b 'drawFractionRatio.C("'$data'",0,"ETA0_'$data'.root","ETA1_'$data'.root","ETA2_'$data'.root","","","",1,"ratio to ref.",3,'$klogx',0)'
aliroot -q -l -b 'drawFractionRatio.C("'$data'",1,"ETA0_'$data'.root","ETA1_'$data'.root","ETA2_'$data'.root","","","",1,"ratio to ref.",3,'$klogx',0)'
aliroot -q -l -b 'drawFractionRatio.C("'$data'",2,"ETA0_'$data'.root","ETA1_'$data'.root","ETA2_'$data'.root","","","",1,"ratio to ref.",3,'$klogx',0)'
aliroot -q -l -b 'drawFractionRatio.C("'$data'",3,"ETA0_'$data'.root","ETA1_'$data'.root","ETA2_'$data'.root","","","",1,"ratio to ref.",3,'$klogx',1)'

exit

